#pragma once

#include "ITask.h"
#include "Timer.h"

class GlobalTimer : public ITask
{
public:
	virtual ~GlobalTimer(){};
	static float m_dTime;
	static unsigned int m_lastFrameIndex;
	static unsigned int m_thisFrameIndex;
	static Time& getTime();

	bool Start();
	void Update();
	void Stop();
protected:
	static Timer m_timer;
};